package com.hxd.otc.module.fiat_deal.bean;

import android.text.TextUtils;

import com.hxd.otc.utils.StringUtil;

import java.io.Serializable;
import java.util.List;

/**
 * 作  者 :  胡庆岭
 * 时  间 :  2018/6/17 11:22
 * 描  述 :  ${交易结果列表}
 */
public class DealResultDataBean implements Serializable {

    public List<DealResultDataBean.Data> list;

    public class Data implements Serializable {

        public String coinId;
        public String createBy;
        public String createDate;//1539334399000; //毫秒
        public String exType; //买卖类型，0买1卖
        public double feeVolume;// "<null>";   //手续费
        public String flag;// "<null>";
        public String id;// //广告ID
        public String lockVolume;  //交易冻结数量
        public double maxVolume;   //最大
        public double minVolume;    //最小下单量
        public String mobile;    //最小下单量
        public String price;    //单价
        public String publishSource;    //单价
        public String realName;     //真是姓名
        public String nickName;
        public String remarks;     //真是姓名
        public String status;     //广告状态status:   0发布状态1已完成9取消
        public String successVolume;    //交易成功数量
        public String supportCurrencyCode;    //CNY
        public String supportPay;    //1微信2支付宝3银行卡
        public String symbol;    //币种
        public String tag;    ///tag=YS 表示广告商
        public String totalPrice;    //发布总价
        public String updateBy;    //发布总价
        public String updateDate;    //发布总价
        public String userId;     //自己的ID
        public String volume;     //发布数量
        public double minMoney; //最小限额
        public double maxMoney; //最大限额

        public String getNickName() {
            if (TextUtils.isEmpty(nickName)) {
                String realNames = StringUtil.emptyIfNull(realName);
                String shortName = "";
                if (realNames.length() > 0) {
                    shortName = realNames.substring(0, 1);
                    realNames = shortName + "**";
                    nickName = realNames;
                }
            }
            return nickName;
        }

        @Override
        public String toString() {
            return "Data{" +
                    ", coinId='" + coinId + '\'' +
                    ", createBy='" + createBy + '\'' +
                    ", createDate='" + createDate + '\'' +
                    ", exType='" + exType + '\'' +
                    ", feeVolume=" + feeVolume +
                    ", flag='" + flag + '\'' +
                    ", id='" + id + '\'' +
                    ", lockVolume=" + lockVolume +
                    ", maxVolume=" + maxVolume +
                    ", minVolume=" + minVolume +
                    ", mobile='" + mobile + '\'' +
                    ", price='" + price + '\'' +
                    ", publishSource='" + publishSource + '\'' +
                    ", realName='" + realName + '\'' +
                    ", remarks='" + remarks + '\'' +
                    ", status='" + status + '\'' +
                    ", successVolume=" + successVolume +
                    ", supportCurrencyCode='" + supportCurrencyCode + '\'' +
                    ", supportPay='" + supportPay + '\'' +
                    ", symbol='" + symbol + '\'' +
                    ", tag='" + tag + '\'' +
                    ", totalPrice='" + totalPrice + '\'' +
                    ", updateBy='" + updateBy + '\'' +
                    ", updateDate='" + updateDate + '\'' +
                    ", userId='" + userId + '\'' +
                    ", volume='" + volume + '\'' +
                    ", minMoney='" + minMoney + '\'' +
                    ", maxMoney='" + maxMoney + '\'' +
                    '}';
        }
    }

    public int count;
    public int page;
    public int pageSize;
    public int rows;
    public int total;

    @Override
    public String toString() {
        return "DealResultDataBean{" +
                "list=" + list +
                ", count=" + count +
                ", page=" + page +
                ", pageSize=" + pageSize +
                ", rows=" + rows +
                ", total=" + total +
                '}';
    }
}
